package com.neuedu.profiles.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProfileController {


    @Value("${envName}")
    private String envName;

    @Value("${info}")
    private String info;




    /**
     * http://127.0.0.1:8080/profiles
     * @return
     */
    @RequestMapping("/profiles")
    String profiles(){

        return "当前环境 "+envName +"     "+info;
    }



}
